package com.min.main;

import com.min.service.Animal;
import com.min.serviceImpl.Cat;
import com.xiaoleilu.hutool.aop.ProxyUtil;
import com.xiaoleilu.hutool.aop.aspects.TimeIntervalAspect;

/**
 * Created by llx on 2017/05/04.
 */
public class ProxyUtilMain {

    static  int x;
    public static void main(String[] args) {

        System.out.println(x);
        Animal cat = ProxyUtil.proxy(new Cat(),TimeIntervalAspect.class);
        cat.eat();

       StaticTest test = new StaticTest();
       StaticTest test1 = new StaticTest();
       StaticTest.eat();

    }

}

class StaticTest{

    static void eat(){
        System.out.println("eat");
    }

    static String num = "hello world";
}